﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TopicInfo.aspx.cs" Inherits="PM.Web.TopicInfo" %>
<%@ Register Src="~/Modules/WebSite_Head.ascx" TagName="WebSiteHead" TagPrefix="uc1" %>
<%@ Register Src="~/Modules/WebSite_Bottom.ascx" TagName="WebSiteBottom" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
<link rel="stylesheet" type="text/css" href="Styles/web.css" />
<script src="Scripts/common.js" type="text/javascript"></script>
<script type="text/javascript">
    function getVoteId(id) {
        document.getElementById("hidVoteItemId").value = id;
    }
    function check() {
        if (document.getElementById("hidVoteItemId").value == "") {
            alert('请选择投票项！再提交！');
            return false;
        }
        return true;
    }
</script>
</head>
<body id="nv_forum" class="pg_index" onkeydown="if(event.keyCode==27) return false;"> 
<form id="form1" runat="server">
<!--头部-->
<uc1:WebSiteHead id="WebSiteHead1" runat="server" />
<!--头部结束--> 

<div class="wp">    
     <!--左边-->   
    
   <!--左边结束-->

     <!--右边-->
    <div class="box" style="width: 960px; float: left;">
        <div id="index_header">
        </div>
        <div class="tit_bg">
            <div class="tit_r">
            </div>
            <div class="tit_l">
            </div>
            <div class="tit_c">
                <div class="tit_index">
                    <span><asp:Literal ID="litTitle" runat="server"></asp:Literal></span></div>
            </div>
        </div>
        <div class="box_con">
            <div class="typepage">
                <div>
                    <asp:Literal ID="litContent" runat="server"></asp:Literal>
                </div>
            </div>
            <fieldset id="voteInfo" runat="server" visible="false" class="typepage">
                <legend><b>投票</b></legend><input type="hidden" id="hidVoteItemId" runat="server" /><input type="hidden" id="hidTopicId" runat="server" />
                <asp:DataGrid ID="dgdVoteItem" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%">
                    <AlternatingItemStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:TemplateColumn HeaderText="选项" ItemStyle-Width="30%">
                        <ItemTemplate>
                            <input type="radio" name="voteitem" onclick="getVoteId(<%# Eval("voteitemid") %>)"  />   <%# Eval("name") %>                         
                        </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:BoundColumn ItemStyle-Width="30%" DataField="Name" HeaderText="选项" Visible="false"></asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="比例" ItemStyle-Width="30%" Visible="false">
                            <ItemTemplate>
                            <div class="bar"><div class="percent" style='width: <%# Eval("percent") %>%; display: block;'>
                            <img src="images/vote_percent.png" width="149" height="13" alt=""></div></div>
                            <span class="percent-num"><%# Eval("percent") %>%</span>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:BoundColumn DataField="VoteTotal" ItemStyle-Width="10%" HeaderText="票数" Visible="false"></asp:BoundColumn>
                    </Columns>
                    <EditItemStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <ItemStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                </asp:DataGrid>
                <asp:Label ID="lblRem" runat="server" Text="备注："></asp:Label><asp:TextBox ID="txtRem" TextMode="MultiLine" Width="100%" Height="30px" runat="server"></asp:TextBox>
                <div style="text-align:center"> <asp:Button ID="cmdSubmit" Width="120px" Height="30px" Text=" 提 交 " OnClientClick="return check()"
                        runat="server" onclick="cmdSubmit_Click" /></div>
            </fieldset>
            <fieldset id="HdSign" visible="false" runat="server">
                <legend>活动报名</legend>
                 <asp:Label ID="lblRem1" runat="server" Text="备注："></asp:Label><asp:TextBox ID="txtRem1" runat="server" TextMode="MultiLine" Width="100%" Height="30px"></asp:TextBox>
                <div style="text-align:center"><asp:Label ID="lblSignInfo" runat="server"></asp:Label>&nbsp;&nbsp; 
               
                    <asp:Button ID="cmdSign" Text=" 报 名 " Width="120px" Height="30px" runat="server" onclick="cmdSign_Click" /></div>
            </fieldset>
            <div class="cl">
            </div>
        </div>
        <div class="bot_bg">
            <div class="bot_r">
            </div>
            <div class="bot_l">
            </div>
        </div>
    </div>
     <!--右边结束-->

    
</div>
<div style="text-align:center">
<uc1:WebSiteBottom id="WebSiteBottom1" runat="server" />
</div>  
</form>
</body>
</html>